package com.longshihan.gril.controller;


import com.longshihan.gril.GrilProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {

  /*  @Value("${cupSize}")
    private String cupSize;

    @Value("${age}")
    private int age;

    @Value("${content}")
    private String content;*/


    @Autowired
    private GrilProperties grilProperties;


    @RequestMapping(value = "/hello", method = RequestMethod.POST)
    public String say(@RequestParam(value = "id",required = false,defaultValue = "0") Integer id) {
        return "hello:" + id;
    }
}



